package strategy;

/**
 * @Author shenhan
 * @Date: 2020/4/12 17:17
 * @Description:
 */
public abstract class Duck {
    public Duck() {
    }

    abstract void display();

    void quack() {
        System.out.println("嘎嘎叫");
    }
    void swim() {
        System.out.println("游泳");
    }
    void fly() {
        System.out.println("会飞");
    }
}
